import React from 'react'
import { $pre } from '../../../../http/http';
import { Link } from "react-router-dom";
    import './wanrentuan.less'
    import { Button, Toast } from "antd-mobile";
export default function wanrentuan(props) {
      let {wanren}=props
  return (
    <div>
        <div className="wanren">万人团</div>
      

       {wanren.map((item)=>{
          return(
            <div className='peoples' key={item.id}>
              <Link to={"/detail/" + item.id}>
            <aside> <img src={$pre+item.img} alt="" /></aside>
            <div className='hse'> <span>{item.goodsname}</span>
            <span className='price'>价格 {item.price}</span>
            <p >历史价格{item.market_price}</p></div>
            <Button color="primary" >加入购物车</Button>
            </Link>
            </div>
          )
       })}
   

    </div>
  )
}
